added a test for client