Add test for freq table of factor variable.