Fixed deprecation warnings for assertEquals in test cases.