Add competiting threads test for transaction.