Update d3 definition

Add missing definitions with tests.