One-sample test for a proportion