Testing/fixing to lowercase dictionary keys method