Add output parameter support and test.

Why would it get pruned? I work with _allExpectations, which is const.