Fix tests for Doctrine ODM >= 2.4