Had logic inverted.

Wrote a test for issue #251, found that the logic was wrong, corrected.
See gist for sample code: https://gist.github.com/4539248