private variable

private variable

In this example, the variable "test" is override to the value '2' because of the last call with "#test2". Is there a way for the variable "test" to be private for each call ?

(function ($) {

var test = 0;
function alerttest()
{
alert(test);
}
$.fn.testing=function()
{
var args = arguments[0];
test = args.test;

$(this).bind('mouseover', alerttest);
}
})(jQuery);


$('#test1').testing({
test: 1
});

$('#test2').testing({
test: 2
})