[test_compat] Add tests for compat_urllib_parse_urlencode