Fix test.sh condition