Added a test to triangulate the template logic
Refactored TestTemplate with fixtures