Install an agent manually. Install the module. Use a manifest to invoke an upgrade with the module, specifying a custom installation directory different than the default. Verify puppet is in the new location and no remnants are in the old location.