fix bug in testAllP1.sh