fixed update tests
added cloudformation template validation function