fix typo, add regression coverage