Adding unit tests for server and client APIs