Added a script to run the tests, and added a 'check' target to the
makefile to run it.