Use the check target to run tests

This provides for tighter integration into the autotools framework. More
details: https://www.gnu.org/software/automake/manual/html_node/Tests.html#Tests

Fixes #126.