Dont use beforeRender in paginator helper.
Skip tests