fix for client mock used in RestTest