gtest for barrier