The tests would need to manage the puppet.conf file (or pass the --module_repository option to all commands) to control which repository is used. We could stop stubbing the forge.puppetlabs.com at that point too.