setting up template code and tests