Refactored getFailingScenarioLogs to include failing backgrounds and huge performance increase