test for bam