Use assert_equal instead of assertEquals

assertEquals is deprecated and its use inconsistent
Add missing msg argument to assert_true()
Use assert_in where appropriate