Some tests and docs update.