Fix #3455, fix #3459, add more rsearch tests

Also
 * add a default definition for rsearch(s::String, c::Chars)
 * remove some redundant tests for search
 * fix some tests for search by using endof instead of length