Fix test failing when memcache extension is installed, but memcache server isnt.
[DDC-2256] Cleanup patch, move dependency on EntityManager out of ResultSetMapping and let AbstractQuery perform the translation.