test: fix `close()` event