add more test code
exit with non-zero exit code on error