add some unit tests for different type deserialization. stream failing because of disposal
unit test for stream return