Improve global test setup in test-helper.sh