Tweak the stream reading in tests for node v0.11.x