Added check for `empty:` url's

Simplified tests