Add Bap_table test suite and bug fixes
Merge pull request #25 from rvantonder/add-tests

Bap table intersections fix + Bap table tests