When can school inputs improve test scores? /