Fixing the testharness to work when there are no tests.

Fixes #347.