add test case that runs examples.
include templates package in distribution