tests: workaround for shells with broken 'set -e'