Added tests for searchrequesthandler