This avoids polluting other tests that might invoke the installer, thus executing any registered hooks.