Fix test-stream2-set-encoding.js.

Comment the block of code where the method end of the StringDecoder class is called because this method does not exist in node v0.8.x.
Fix test-stream2-transform.js

Require Duplex class.