"""Unit tests for detect_errors lambda."""