fix tests for php5.6