fix(MockSTDIN): if last chunk not emitted, send it immediately

Closes #8
Closes #9