Great point, it reminds me of when I read about how "trials by ordeal" sometimes worked.
Consider the boiling water/oil thing: If you're innocent, you can "stick your hand in and not get burned."
What they did was, they faked the water being hot by blowing bubbles in it. All then that was needed was for everyone to "believe it worked," The innocent sticks in, and then the guilty confesses.