Changed docs.
Added test case.