Unit test for destruction with loaded queues