Downgrade factory_girl for ruby 1.8.7

Versions of factory_girl after 3 are not compatible with ruby 1.8.7
Use earlier factory_girl syntax
Make test ruby 1.8.7 compatible.