docs update and more unittests