Adding tests and gtest.