ws test case with d3.js