test case for barrier client.