Added templates for rest of the tests. Refactored the Publish command to make it cleaner and more reusable.