fix invalid_url, add misdated_url tests

rename test_invalid_url() to test_misdated_url()
add new test_invalid_url()