Logic of a Hypothesis Test