Testing script failure detection