fixes unit test on services
fixes unit test on service templates