Adapts test suite for cors and jsonp

- Also adds plan tests