Add a test case for dictionaries inside a list