tests: Clarify a test

Move the test struct closer to where its used and make the name more obvious.
mkdb: turn commentes print statements into @TRACE@ statements

Also turn a remaining print into a LogWarning() call and remove some tracing
print statements.