Fix imap test

Signed-off-by: Laurent Laville <laurent.laville@gmail.com>