New function _gen_lists is now unit tested