fix stack overflow during GWT tests