There's always the possibility that a used engine could be junk, but normally a better chance that it is not.
I've bought a lot of used engines over the years, not a single one have I heard run first. Leaving it in the vehicle is usually not economical for the seller or the buyer. In this case, I'm sure the seller did not want the rotted motor home sitting around while they found a buyer that would come see the engine running, then come back a second time with cash, once the owner found time in their potentially busy schedule to remove the engine. Realistically, very few engines are sold in "I saw it run for myself" condition. Just like buying one from a salvage yard. Nobody buys an engine from a salvage yard after saying that they will only pay core value because they didn't hear it run. Why would a private sale be any different?