fix tests; add first pass at implementation of bayesian bandit