Fixed test suite for PHP 5.4