added dictionarydel and fixed test code