Added tests for archiveQueueFailures and processQueue