update test case to make it run on PHP 5.2