Manipulating Statistical Hypotheses and Tests as Boolean Functions