added gtest unit tests