Tests for creating transaction