Fix unit tests
Add discovered category to _stats_detailed_candidates