Fix bug in test.sh