solving the test 'check stream' on node >= 0.10