Make sure `searchText` is always a string, fix specs.