Incorporating Test Inputs into Learning