Optimize code coverage of testing and add it into the documentation