A slightly more elegant approach to the nhist test.