fix typo and add some tests.