rewrote testcases as functions, moved to template doc