Testing D3 JavaScript library