Test infrastructure for trace iterator.