Repair an error in test buildscripts.
Correctly test for the availability of logging in tests.