Fix for TestProfile.test_profile_creation