Add some additional tests and documentation.