Fixed typo in spec for error message generation