fix typo
added tests