Fix tests on old php