updated messages, and added test for streaming functionality.