unit tests for user profile