added Junit tests for inputStream using decorators