Fixing D3 cruft in tests.