Fixes test that sets text manager stub and produced side effects