Add test to check if subcommands are sorted Upstream-commit: 38e5764132a535a76b0525a6b357ebba22fe272f Component: engine