List<IField> fields = new ArrayList<IField>(data.get(4).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"));

spans.add(new Span(RegexTestConstantsText.CONTENT, 65, 72, regex, "patient"));
</BUG>
spanField = new ListField<Span>(new ArrayList<Span>(spans));

List<IField> fields = new ArrayList<IField>(data.get(4).getFields());
fields.add(spanField);
expectedResults.add(new DataTuple(spanSchema, fields.toArray(new IField[fields.size()])));
spans.clear();
spans.add(new Span(RegexTestConstantsText.CONTENT, 18, 27, query, "follow up"));
spans.add(new Span(RegexTestConstantsText.CONTENT, 51, 60, query, "follow up"));
spanField = new ListField<Span>(new ArrayList<Span>(spans));
