Added functional test for CORS #122