d3Chart-constructor: passing tests