Future commits will deprecate the accounts RPC methods, arguments and return objects. Set the -deprecatedrpc=accounts switch now so tests don't break in intermediate commits.
listtransactions is a wallet RPC. The test name should indicate that this is a wallet test.