add assertions into test_equality
fix equality comparisons
Merge pull request #3 from kachick/fix-equality

Fix equality comparisons