More test cases and more documentation.