globalize modularized dc for the tests
fix a test broken by updated d3

this is a backport of 77342141a