tests for d3.js