Making tests work in PHP 5.3