Students can opt out of the tests, which are used in decisions to promote students, help evaluate school performance and educators, and figure into bonuses for school staffers whose students do well on tests.