Test Square.distToBoundary.