Fix typo and add test file