Update the autotooling with a separate makefile for the tests
subdirectory, to free us from the shackles of Automake's assumptions
about how 'make check' should work.