Add view helper and tests