Extract common default functions by creating nvd3Helpers in function invocation. More tests (61% coverage). Biggest flaw in tests are legend directives.