Migrate test.php for web testing to CakePHP2.1