Fixes tests in a hardcode way -- uses localhost in tests.