test client with fake api