update tests to work with PHP 5.3.3 and PHP 5.4