Adding tests for --max-categories