added and reorganized unit tests for BasicQueueTest and QueueListenerTest

Imho we shouldn't because it is a optional.