add simple test for inputStream