fields = new ArrayList<IField>(data.get(5).getFields());
fields.add(spanField);
expectedResults.add(new DataTuple(spanSchema, fields.toArray(new IField[fields.size()])));
spans.clear();
fields.clear();
<BUG>spans.add(new Span(RegexTestConstantsText.CONTENT, 4, 11, regex, "patient"));
</BUG>
spanField = new ListField<Span>(new ArrayList<Span>(spans));
fields = new ArrayList<IField>(data.get(6).getFields());
fields.add(spanField);

fields = new ArrayList<IField>(data.get(5).getFields());
fields.add(spanField);
expectedResults.add(new DataTuple(spanSchema, fields.toArray(new IField[fields.size()])));
spans.clear();
spans.add(new Span(RegexTestConstantsText.CONTENT, 24, 33, query, "follow-up"));
spans.add(new Span(RegexTestConstantsText.CONTENT, 38, 46, query, "followup"));
spanField = new ListField<Span>(new ArrayList<Span>(spans));
fields = new ArrayList<IField>(data.get(6).getFields());
fields.add(spanField);
