use exit instead of incorrect return in test wrapper