Added the url param to test_main to avoid IOError during test.