added WriteServiceError test