Workaround sporadic SSL errors in tests