Ruby kata from telemetry_system/lib/telemetry_diagnostic_controls.rb, converted to RSpec