stack overflow error in tests fixed (T-5678)