add gtest.
add gtest.
add DYLD_LIBRARY_PATH setting to Makefile.
add testcases.