Fix typo and test