wrap $document->getId() in $this->idToMongo() so the code works with string ids and MongoID objects; unit tests to be added
access level of property $db must be public as it's also public in the parent class
parent::rewind and parent::next return void, so we should not return anything here either
function command(): $data was put into log but not defined, $options was not logged, so replacing 'data' with 'options' in log output;
function createCollection(): adding 'time' to log output
access level of property $db must be public as it's also public in the parent class
parent::rewind and parent::next return void, so we should not return anything here either
added 2 tests for update and delete a single document with a scalar Id set instead a MongoId