[BZ-1009348] add test case demonstrating phreak bug when having subnetworks in stream mode
(cherry picked from commit 93a209fb7b9436d5a10bf23559837108dfd4ba7c)