$test is a convention used to indicate that this variable is a jQuery object and you can call the standard functions on it while test could be a standard DOM element and you cannot call the val function on it for example.
For example:
var $test = $('#someId');
var test = document.getElementById('#someId');
You can do $test.text(); but you cannot do test.text();