Fixed test incompatible with php-5.2