set -x in test.sh
add setup function and while sleep loops