added ability to test against generating dictionaries and lists