Make sure splitting a polygon works correctly