As the comment for `PairExpiredDialog`, here we only need to test if `PairExpiredDialog.close` is called.