Add missing test for closed statement.