ported some url validator test cases