Added a test and documentation