added S3_CDN_DOMAIN support
added tests for S3_CDN_DOMAIN support