Rectangle-testing