Fixed out parameter.
Added test.