Unit tests for user creation