added missing code to TestUserManagement