Add output parameter support and test.

:-) The expected call contains the pointer to the value to copy (const). The actual call contains the pointer to the receiving pointer.