fix test cases in PHP 5.5