fix(upgrade): test for ability to connect to localhost if rewrite test fails - Refs #6888