[PATCH v6 2/2] cmd/tests: Add tests for new MODE command.