Fix typo and add test for error message