How do i write a `test` for a program that will `echo` a message and `quit(1)`? I'm not using exceptions here, because I don't want to print the whole stack trace. Is there a better way to do what I'm trying to do?