adds tests for URL and adds logic to pass