fix stream name, add unit test for binary serialization, add test classes