fix typo, test and coverage