add unittest based on gtest