Bayesian Sequential Testing