add explicit exit status checks to force test failure when a script fails