Add test and fix the DispatchedService::Successful bug.

Add preempted by test and fix for this [issue](/team-umlaut/umlaut/issues/12).