Tests fix for Firefox 27 compatibility