added template files and tests