added tests for client