fix department assignement & add unit test for manager changes
fix department assignement & add unit test for manager changes
fix department assignement & add unit test for manager changes
fix department assignement & add unit test for manager changes