Tests for invalid url passed to hostFromUrl added