The "test-escaped-arg" command:
Usage fossil ARG ...
Run each argument through blob_append_escaped_arg() and show the result. Append each argument to "fossil test-echo" and run that using fossil_system() to verify that it really does get escaped correctly.