BF: Fix AttributeError and NameError

An AttributeError was raised because the test main was not adapted after
a change of ListWidget to be a GlobSizer instead of just containing one.

A NameError was raised because logging was used but not imported.

Both found by pylint.

Unrelated: There is no copyright statement in this file (unlike others).