#55 -- beef up unit tests for the bkb now flow and fix bugs along the way.  unit tests for the parts that do the actual work are still lacking