Updated unit tests and added 'make test' to the Makefile.