test case equals method.