added -url option and function assertURLExists