Fixes #3293 add FactoryGirl to tests

Also adds an example factory.