Added unit tests for class UserManager.