Fix failing test with missing `AppShell` message.
Fix error about undefined `ClassRegistry` on Cake 2.3.