Updated tests and documentation.