Added tests for closeAll