test file for bayes inference