Porting test_profile by adding ContactFactory calls