Statistical Test for Generated Hypotheses by Diffusion Models