Seol mar théacs é seo: When Can School Inputs Improve Test Scores?