Added automated testing; execute with `make check\'