BUG: binom_test failed for some values, closes issue #2384