Added a test to check all carts of length n.