new test of the montecarlo function