added and reorganized unit tests for BasicQueueTest and QueueListenerTest

Personally I would not do a size check. Since it is a readonly operation; the size should not change... although of course it is a bit fuzzy.