testing the user profile factory