Improve assignmentscontroller tests