Update documentation and create test.