api client and server test