Add code coverage for mock and mockdb && unittest base

1. Unittest base test case utlization.
2. Increase coverage for mockdb and mock