updated for factorygirl tests