convert search_base for events portlet, fix tests