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.