Added BinaryWriterTest.cpp
Stream and Encoding fixes