test.sh upgraded
minor changes