Tests with D3.js

Modifications and tests for D3.js