PHP 5.3 fix on tests