Add test for closed consumer before commit.