Fine tune test.sh