Use transations in tests