Fix tests with RDoc 4

Fixes test failures with RDoc 4 broken by commit rdoc/rdoc@7f0033d