Fixed tests and delete only the membership when you update a department.