test (graph.spec legend.spec) unit tests for show/hide data-state