change current api tests to use client lib to interact with the server instead of...