override equals in SolutionRectangle and Solution1Test