Adding functions to test for decoded script structures