Fixed unit test for dictionary.