Use google test to write unit test.