Ignore the mains tester results entirely. At best they are misleading (and downright dangerous in every other respect).
Measure the voltages against earth as a reference with the stat disconnected. This way you can identify which wire is the permanent live and go from there.
Mathew
Measure the voltages against earth as a reference with the stat disconnected. This way you can identify which wire is the permanent live and go from there.
Mathew