Added stream state tests

Improved assert message