Improve ITestCommandContext and TestCommandContext.