fix tests where cmd function does not exist Upstream-commit: 75b47467aa81b203f565eef7a182f0f805d0f812 Component: engine