added a test for getting a transaction from a trade and resource