fix equality test
Merge pull request #13 from mancdaz/master

[BUG] equality test was setting attribute