Improve stability of test_studio_outline tests.

STUD-2084