use gtest to unit test