fixed up the testing d3 code quite a bit. Looks better now