Updated tests for upcoming by-rectangle API.