Use the checkURL func and remove magic

Use the checkURL func and amend settings for tests + add a flow test.
it's confusing to me that you removed ``window.location.hostname`` but the test below still passes. Or does it?