Added 'make test' and some test scripts which exercise parts of the