Replaced assertEquals with assertEqual.
Make all tests pass on Python 3.