tests: Update words test result

(Broken by c160f40acc0bf69cfde49e94410720279d8d147a)
tests: Fix lines test

It was mistakenly splitting the text by words instead of lines.
The output only accidentally looked correct.
Fix words and lines splitters
Add eol test (current result: DustMite crashes)
splitter: Improve EOF handling