Rewrite test for user management.