[Olena-patches] 3916: Improve global_vars test.