adding tests for templating and stuff