Specify actual files for tests.

Apparently, automake's test driver doesn't like directories as targets.
There are a couple of minor hacks here, which I'll fix eventually.