TS/HM: expectedReturnCode is None will not check for exit status; Fixed stdouterrlog