Emulating functions tested, and extended runtests.sh to check exit codes instead of output.

Kathy: I changed some article text, you should look at that :)