Adapt test to work against cakephp 2.3 and 2.4