Add unit test for searchbykeyword