Testing categorial pmf and cdf (re #17)