Improve tests.
Introduced Transaction object that encapsulates transaction id.