Adding some test units and fixing AbstractProcessorQueue