set the bash pipefail option in the test script to return the error