test: add test to ensure we can use non-const lists via check.