The firings , which will be effective at the end of this school year , came after the district said it failed to reach an agreement with the teachers ' union on a plan for the teachers to spend more time with students to improve test scores .