Fix test.sh for loop