Fixed failing tests on PHP without Mongo extension