add test for #search_field when called with onsearch option

search_field helper had no test for the onsearch option, an indeed it was not working, this pr fix this
Does `tag` by itself not already accept `yield`? E.g. `content_tag do ... end`. Having multiple yields at different layers could be a problem.