Your jquery does not deal with anything in that div. The div has no id or class to be dealt with separate from any other div on the page. I think this is not the right div.
Maybe you want this:
var x = $('#test').html();