Test statistic and p-value
For testing a proportion, the number of successes can be used as a test statistic, and the p-value can be obtained from a binomial distribution.
Australia Post example
This example shows how the binomial distribution is used to find the p-value for a test.
Tests about binomial proportions should always be done using binomial probabilities rather than simulations.