Bug 1088706 - Accented characters like ñ are not highlighted after doing...

... a search with them
duplicate code. please create an utility function for the assertions