Add test for custom validators in dict keys