removing the explicit close() for the given InputStream
Adding test for new Inputstream method