changed client test to use stubs