fix issues with processing categories that are disabled. Fix category testing.