Added test cases for CORS and match file as string