Added tests for queueEmpty and archiveQueueFailures