Fix user management tests