import gtest to do unit tests, and replace the original ugly test codes(not still completed)