Fixed tests in PHP 5.3