Migrated some unit tests to gtest framework