Fixing the testharness to work when there are no tests.

Fixes #347 reported by Alan.