Add gtest for unit tests