fix tests to run on PHP 5.3