Added similarity assertions to the TestCase class.