Exception Handling for StreamTest