Add dispatching invoice example and tests