School Inputs, Household Substitution, and Test Scores