supporting (forcing) array specification of expected exit codes in run()