fixed tests to pass with PHP 5.3