tsan: merge 2 similar tests into 1