Submitted to the Annals of Statistics TESTING COMMUNITY STRUCTURE FOR HYPERGRAPHS By