Use assert_equal instead of assertEquals

assertEquals is deprecated and its use inconsistent