Added a test for SearchRule