Guard some module-level test calls