Use `test?` here rather than referencing `Base.mode` directly.