Use the checkURL func and remove magic

Use the checkURL func and amend settings for tests + add a flow test.
what is this alert here for? Should it be something more like ``alert("you should never see this")`` ?