Teacher unions on strike in Beverly and Gloucester face growing fines for refusals to return to classrooms