Upgrade FactoryGirl to 4

Upgrade FactoryGirl to 4.