added structure test for streams