Added EmbeddedMongoDBFactory implementation for unit testing persistence