io.read.bind(io) was not having intended effect. strip out a lot of debugging. use node assert for equality test.