feature tester

A function to test categorical feature