shell script's test fixes