Add rectangles with tests