Test: use assertEqual instead of assertEquals for Python 3 compatibility