fix failing test and typo