Fix failures when JTEST_HTTP_STUB const is defined