Add tests for nested dictionaries and lists

Nested dictionaries are failing, though