added and reorganized unit tests for BasicQueueTest and QueueListenerTest