Added vendor folder into gitignore
Added more tests for the factory and general improvements