Make tests work in PhantomJS again by specifying a radix for 'parseInt'

PhantomJS parses numbers starting with '0' as octal, in case no radix is specified. This should be polyfilled in the future as it does not comply to the ES5 specs.