This is a little weird, but testing was really difficult otherwise. I found some solutions that involved replacing `require()` with proxied versions, but they seemed kind of extreme.