Add test for connection stream.