adds tests for cmdline