mv factories to test/factories and export it