updating functional test to use cluster.state to determine existence of template after delete... seems to work with both new version of ES as well as previously released version