Bayesian Hypothesis Testing And Its Applications