Fixes #5294 - Mocks session for installation process
Merge pull request #5306 from Srokap/ticket_5294

Fixes #5294 - Mocks session for installation process