I realize this is a fairly long-winded test, as it essentially duplicates the reported issue from #5439