make test_cors run with older Swift versions