Switch testing framework from MAIN to new UNITTEST network (rebase)

See #4845.
Trying to figure out why this breaks the tests now.