Added a test, updated the documentation