added test for `defaultDict`