fix typo
write tests