make redirect test work offline