add set -x and -e to test.sh