Add STREAM connect notification.
Adjust test cases to connection notification.
Increase error checking in test cases.
Merge pull request #832 from mrvn/pull_stream-connect-notification

Add STREAM connect notification.