Changed deprecated chrome.extension on chrome.runtime in all files and fix tests