tests for CmdFlags