wrote tests for next_assignment method