Added test script and Makefile to automate tests.