started writing tests, changed safety_score to threat_level