adding gtest test codes

I added gtest include files and unit test codes.
Please check it out.