extracted base class for BA bots, refactored tests, fixed a linked data generation bug.