ObjectStream, createStream with write, tests