Add working gtest example
Add code coverage and test cases