Fixing the testharness to work when there are no tests.

Fixes #347.
Merge pull request #348 from mithro/master

Fixing the testharness to work when there are no tests.