Update subcommand tests.
Run action middleware before exec.