Tests for rect.