Restore initial modes after testing