added accuracy testing for category classifier