Add service_def resource tests