Updated gtest run and exit to work properly