Fix reversed logic and update test to include an assert.
Merge pull request #82 from codesmithtools/master

Fix reversed logic and update test to include an assert.