improve test-ci-all.sh

fixes issues #2 and #4