added and reorganized unit tests for BasicQueueTest and QueueListenerTest

You need to add a 'fail()'. If the NPE isn't thrown, you have no way of seeing that currently.