You need to pass the magic
query parameter to topology updater which corresponds to the main testnet one.
To be on the safe side pass it in both scripts, the one that sends the heartbeat every hour and the one that pulls the topology.
To the topologyUpdater URL in the script add &magic=1097911063
for the testnet.