Added functions for the AssignmentService along with tests.