Refactored shouldBeRectangular test