Improved closing of streams in tests

1 file changed