Added tests for IO flushing when going out of scope