Not a big fan of this test - I run my tests on docker, so the host will never be localhost.