add test for converting nested filters into dictionaries.