Fix test_api_transaction unit test to not use hardcoded years

First step before I start issuing real pull requests. :-)