remove tests side effects

(cherry picked from commit 7d56822927ac03826c17781892aefceba8489074)
IDEA-125456 MouseDown + Ctrl + MouseUp counts as Ctrl + Click

(cherry picked from commit 7ef4b6d7e4104ca0e9ebfb874e93e444911e4133)