sh: Add test case for a subtle delimiter
sh: Improve a test case to be more easily debuggable

Avoid using the exact same function definition to catch buggy behavior
to avoid CTags output deduplication and ease locating the issue.