Add STREAM connect notification.

Add STREAM connect notification.
Adjust test cases to connection notification.
Increase error checking in test cases.