fix some tests broken by updated d3.js

fixes #550