Fixed DeprecationWarning caused by assertEquals.