add resetSearchWords test and fixed resetSearch test