Fixes Deprecation warning for AssertEquals in tests