More tests and docs.