Added some logic to identify the main resource in a page for tests where we have devtools data