add gtest for unit tests