added CategoricalMethodTest for rhino javascript categoricalMethod