Fixed bug in UserManagementTests.