implemented suggestions from the PR;
> updated jdob's unit test to handle groups and categories