fix tests for php < 5.4 (part 2)