Added more unit tests for the client lib