fixed test cases for cakephp 2.3 or greater