Important bug fixes

why not do assertequal and check all the dict?