test: add test for https server close event