added test_rectangle_with_remains