Adjust test cases for deficiencies of PHP 5.1