Sub test parameters behaving weirdly during test runs

I have the same subtest X running at two different positions in my main test. The subtest X has a private parameter whose value is modified during the test run. While running in the editor mode, everything works fine, I see that the private parameters in the sub test are reset to their default values.

But while running a test as part of a job or separately as a stand alone test, I see that the private parameters in the sub test are not being reset to their default values. This means that the second time the sub test X runs as part of my main test, it doesn’t work as expected.

Platform: Android