fixed typo and tests