fix tests for php < 5.3