(#883) - Add tests for CORS and cookie auth functionality