Added procedure tests exception handling extension, fixing loop bug with error thrown