Added a test.
Improved the doc