fixes for current cakephp 3.0

The request detector cache gets a bit confused in this test - so clear
it whenever something changes