Boost unit test for bernoulli function