To get the "target" element as a jQuery item you need to do
$('#target').html(data);
If that still doesn't work then you need to do some debugging using the browser tools, check that "item" is what you expect, check the action is called, check the "test" variable has results, look for errors, exceptions etc.