Fix coverate test exist bug.
Fix test cases, add new cases.