Fix test so it doesn't fail on deprecation warnings.
Merge pull request #521 from apenney/fix-eq-tests

Fix test so it doesn't fail on deprecation warnings.