Add GetSeverity and tests