More test coverage.
Fixed inaccurate doc comments.