Added tests and implementation for MongoRepository updating an entity