added some code to the service templates to get it runable if you only run the tests