Bring impmagic.py coverage to 100%