Support `make check`

Closed #7