testing bayesian approach