Adds test cases for the caps 'first' intersect mode Adds another test for the 'zigzag' mode Fixes #617045