Tests: fixed stream js exit tests introduced in 69d71a15d407. Previously, the tests relied upon the following assumption: two consecutive syswrite() in stream_daemon will be received as a single data chunk in stream which is not always the case.