test BAM dir