fix(tests): use TransactionTestCase where threads are used