wrote tests for a number of functions starting with "B" and fixed errors...

... in the wrapper functions for them.