"""Tests for threshold component."""