unit tests for categorical features