Added a test to ensure cors header is added
Moved to comply with conventions guide
Added a basic decorator for the header adding