Test tool

Added the test tool for the BAM access.