Add assertion to helper and controller plugin