test for ```errorClosed()```