Add test for stacked graph.