Test the character-to-number conversion function