Hypothesis testing near singularities and boundaries.