Fixing tests which were failing on phantom, passes on chrome.