add test, add exit code