rename barrier client to peer client. add test case for peer client.