solve client test case