Tests: add tests for the list generator