fixing unit test and docs