fix tests; add tests for lists