added and reorganized unit tests for BasicQueueTest and QueueListenerTest

why do you check size of queue? if you are not sure, i think you must write another test.