Tests for transaction