added gtest framework and separated two tests