Cleanup test.
Add documentation.