Fix issues and documentation in Ensure.

The function actually checked if the result was 0 or 1, not that it passed or anything.