Fix UserFactory

Also adds a basic .travis.yml file.