add a test code for using google test suite to do unit test