make test_cors run with older Swift versions
Merge pull request #70 from pkit/minor_fixes

make test_cors run with older Swift versions