Added queue_destroy function for cleaning up in tests