First attempt at writing tests for the storage of repositories in mongo