mongodb unit test compatibility