update test for searchByWord