This avoids doing copies of CTransaction in the tests. This will make the test to work with a non copyable CTransaction.
Also removed the forward declaration of the UpdateCoins function in favor of a proper include. This will prevent the test from failing to build when the prototype changes.