fix tests + warning dialog