Fix test case have PHP5.2 incompatible code
Applied changes of behavior callback signature from Cake 2.4.1