Added tests for Polyline::insert() and Polyline::remove().
Corrected Polyline::insert() and Polyline::remove().