Change testing function for stream mode (input data is  received by  one character).