added missing tests for equal method