Add tests for category parsing and searching