Add test for matches_junction
Fix bug in cigar handling