client testing and cleanup