Added insertion tests for TreeTemplate.