a tester function available for use if one want to test bayesact