capitests: Allow tests to properly test optional arguments.