modify test: random rectangle can be a square