Replace isArguments with a x-browser version and modify tests