Added unit test for template print