Testing the /transaction endpoint