tests: simplify createTransaction test logic