Take the easy way out of this compiler warning

Unused declaration
Nicer log printing for test suite
Fix compiler warnings