Update rack-cors and fix tests for changes in behaviour