test for input stream reading