Fixed tests for older php versions