Boundary tests for templates

- Updated all existing tests with factory
- Added support to create template with audit comments
- Added 7 new boundary tests
Anyways getting this merged for now. I will start an email thread to fix this if needed as we need this test soon.