cleaning up some of the code on the test_url.rb script