Add helper function test local client