Add _formatTrigger and tests