Added url_test, top-level page test.
Improved error reporting for invalid input.