I made the test arrays pseudo-random as it was not clear to me how to generalize for complex coverage.  This might miss some edge-cases, but it does not seem like the current tests actually use carefully chosen edge cases.