spec: add test case for incremental last-pattern
Fix not to insert unexpected separator
Merge branch 'fix-incremental-last-pattern'