Tests for in html rendering using d3