Unit test for user management actions.