Boundary tests for templates

- Updated all existing tests with factory
- Added support to create template with audit comments
- Added 7 new boundary tests