Fix to make the test work on lower php versions