Fixed tests and typo.