Fix helper failing when running tests through webserver