Fix memcached tests.
Fix more tests.

* Invert assertions as APP is now inside CAKE during core tests.