Added unittest for stream.
I need to figure out how to populate packets to factory, and i wish to make factories non-singletons.