Make tests work with PHP 5.3