added test passing error handling to character class