fix two bugs in test-ci.sh script