JOJ14: Add test on client throws exception and reformat client