Add unittest for Amazon CloudWatch