added set -e at the top of bash test script to abort if any command has an error