Added some unit tests for cloudfront
Merge pull request #2076 from pasc/cloudfront_unit_tests

Added some unit tests for CloudFront. Fixes #2076.