Fix tests for php5.3