fix tests and function name typo