adapted `testStream` to changes made in 21cacc46b4acfd916aeaf659d5daa17ea7f5a40e
adapted `testStream` to changes made in 21cacc46b4acfd916aeaf659d5daa17ea7f5a40e

ringo/ringojs,ringo/ringojs,ringo/ringojs,ringo/ringojs