change nest in chart template; add some tests/examples