test searchByWords