restored the test case
and removed the doClose param, as no longer relevant.