fixes for current cakephp 3.0

THe request detector cache gets a bit confused in this test - so clear
it whenever something changes
Merge pull request #225 from FriendsOfCake/cake3-update

fixes for current cakephp 3.0