Refactored and extended toggle_assignment_activity tests