s1543: better default thread queue size, and raise exception if uses uninitialized
s1543: Initialize thread queues for tests