Add test support for imap idle