Improve tests checking of list lengths