returns test exit code instead of stop server