added and reorganized unit tests for BasicQueueTest and QueueListenerTest
made some corrections and added unit tests
Merge pull request #3318 from hasancelik/feature/master/queueBasictest

added and reorganized unit tests for BasicQueueTest and QueueListenerTest