fixed tests on PHP 5.2