Fixes #5294 - Mocks session for installation process