refactoring controller and testing (employee)