This test appears to have been broken by #5535.
All I did was disable the new feature, because it seemed to me like the test was more concerned with thinking of the nodes as miners than exercising the relay policy, and I think this test will be reworked anyway by #5159.