fixed few issues in test-script.sh