test: add test for list sanitization