Also test for `retcode > 0`.
Merge pull request #6395 from s0undt3ch/sprint/mock-salt.modules.alternatives

Also test for `retcode > 0`.