add tests and views for category search