added test_rectangle_with_remain