Write tests for the code below using [framework, e.g. Vitest/pytest]. Cover: normal cases, boundaries, invalid input, error paths, and one property-style test if useful. Follow the style of this existing test: [paste a test]. Don't test private implementation details. List any behavior that seems like a bug instead of writing a test that locks it in. [paste code]