Updated bernoulli test

Still have to fix 're-using' parser code in test programs