unit test for new dictionary methods