We may want to have this test for len <= 1 or 2 instead rather than accepting any input. That can be separate from this PR.