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