Completing unittests and docs.