added factories and a FactoryBoy based test