Removed duplicted test.
Added a test for covering the wrong type behavior in WriteStream.