modified run tests so that (hopefully) it produces an error if any command within it fails