fix typo and test