Behavioral test plan
Create a test plan for this code. Cover happy paths, boundaries, failure modes, state transitions, concurrency, and regression risks. Prefer observable behavior over implementation details. Return test names, setup, action, and expected result.