Missing logging import statement in queues.py test_stub

Added a unit test around this, too.

@beaulyddon-wf