RectTest tdd and hashCode method.