ensure that script fails if test stage fails