Date.parse works a bit different in Firefox and IE and Webkit. Also fixing
the creation of global variables in the test.