Use the checkURL func and remove magic

Use the checkURL func and amend settings for tests + add a flow test.
neat trick