Added a service for d3 and a test directive.