fix bug in merge output and cleanup jaccard test