test case for js_search