Add another functional test for preventing empty lists