A binomial test for hierarchical dependency