fixed unit tests for new samtools