Rename p.end() to p.break_stroke(), and add a unittest.