Fix barrier API/test.