added test for closing filtered stream