Add more tests for pipeTo, fix bug in pipeTo, fix bug in WritableStream's [[error]]