Test Updated

This exact code segment is not there in the latest pull requests. But all the remaining streams have been closed properly using finally blocks, but without closeQuietly. i.e. Manually wrapping it with try/catch again within finally.