Added tests for session close event.