Add output parameter support and test.

Sorry, by ID I meant another expected parameter.  Hopefully it is clear looking at the additional tests I wrote.