add bam merger test
fix signed/unsigned compare