Add factory_boy factories and pytest coverage for user creation, role assignment, and role persistence behaviour.
Add factory_boy factories and pytest coverage for user creation, role assignment, and role persistence behaviour.