Update deps and fix RepositoryFactory in tests

Newer versions of Doctrine have added a RepositoryFactory to the
config, but because the configuration is mocked and did not implement
the getRepositoryFactory method, the tests failed after updating.
Merge pull request #86 from jankramer/update-dependencies

Update deps and fix RepositoryFactory in tests