add test for RegionLimitedBamReader
remove dead code