added test to factorygirl