java. Client tests, fixed #124.