added test for generic dictionaries