Fixing tests that fail when running with optimizations (``-O``) in ``test_imaplib.py``.