Improve test case and documentation.