Tests for rectangle