added a fix for no route to host and included a test to go with it