userManagementSvc testing and refactor