testing/bam: move to main