use TransactionalTestCase

See referenced commcare-hq PR