Enable running unit tests with make check.

This is also useful to automate the process of building and testing.
Merge pull request #12 from tetsuok/enable-make-check

Enable running unit tests with make check.