Test client and improvements for communication API