add tests for Categorical to discrete.jl