DATAMONGO-812 - Added assumptions to not break tests on old MongoDB versions.