add gtest dir into cmakelists.txt
add unit test