Remove useless file
Add tests for factory