Fixes #3293 add FactoryGirl to tests